約 4,620,327 件
https://w.atwiki.jp/solutionlog/pages/19.html
JPA2.0 JavaEE HTMLパーサ http //jsoup.org/
https://w.atwiki.jp/masayuki_mutsure/pages/11.html
http //xerces.apache.org/xerces2-j/index.html Xerces2 Java Parser 2.9.1 Release Welcome to the future! Xerces2 is the next generation of high performance, fully compliant XML parsers in the Apache Xerces family. This new version of Xerces introduces the Xerces Native Interface (XNI), a complete framework for building parser components and configurations that is extremely modular and easy to program. The Apache Xerces2 parser is the reference implementation of XNI but other parser components, configurations, and parsers can be written using the Xerces Native Interface. For complete design and implementation documents, refer to the XNI Manual. Xerces2 is a fully conforming XML Schema processor. For more information, refer to the XML Schema page. Xerces2 also provides a complete implementation of the Document Object Model Level 3 Core and Load/Save W3C Recommendations and provides a complete implementation of the XML Inclusions (XInclude) W3C Recommendation. It also provides support for OASIS XML Catalogs v1.1. Xerces2 is able to parse documents written according to the XML 1.1 Recommendation, except that it does not yet provide an option to enable normalization checking as described in section 2.13 of this specification. It also handles namespaces according to the XML Namespaces 1.1 Recommendation, and will correctly serialize XML 1.1 documents if the DOM level 3 load/save APIs are in use. Features of This Release The Xerces2 Java Parser 2.9.1 supports the following standards and APIs eXtensible Markup Language (XML) 1.0 Fourth Edition Recommendation Namespaces in XML 1.0 Second Edition Recommendation eXtensible Markup Language (XML) 1.1 Second Edition Recommendation Namespaces in XML 1.1 Second Edition Recommendation XML Inclusions (XInclude) Version 1.0 Second Edition Recommendation Document Object Model (DOM) Level 3 Core, Load and Save, (DOM) Level 2 Core, Events, and Traversal and Range Recommendations Simple API for XML (SAX) 2.0.2 Core and Extensions Java APIs for XML Processing (JAXP) 1.3 XML Schema 1.0 Structures and Datatypes Second Edition Recommendations Backwards compatibility According to the DOM Level 3 specification and DOM Level 2 errata the createElementNS and createAttributeNS methods convert empty string namespaceURI to null. Please, let us know if this change affects your application. Changes from Previous Release The Xerces2 Java Parser 2.9.1 fixes several bugs which were present in the previous release. It also includes a few minor enhancements and performance improvements. For a more complete list of changes, refer to the Release Information page. Changes from Xerces 1.x Xerces2 is a nearly complete rewrite of the Xerces 1.x codebase in order to make the code cleaner, more modular, and easier to maintain. It includes a completely redesigned and rewritten XML Schema validation engine. Applications using only the standard interfaces such as JAXP, DOM, and SAX should not see any differences. License Information The Xerces-J 2.9.1 release is available in source code and precompiled binary (JAR files) form. Both Xerces-J packages are made available under the Apache Software License.
https://w.atwiki.jp/yoshida2/pages/129.html
import java.awt.*; import java.awt.Color; import java.awt.Graphics; import javax.swing.JFrame; import java.util.Calendar; public class AClock2 extends JFrame { final int f_width = 400; final int f_height = 430; final int r = 180; final int x_0 = 20; final int y_0 = 40; final int x_c = x_0+r+1; final int y_c = y_0+r+1; //Image pi=getToolkit().getImage( Clock.gif ); Image pi=getToolkit().getImage( 4600.jpeg ); public AClock2() { super( アナログ時計 ); this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); this.setSize(f_width, f_height); this.setVisible(true); java.util.TimerTask task = new java.util.TimerTask() { public void run() { repaint(); //一秒ごとに再描画 } }; java.util.Timer timer = new java.util.Timer(); timer.schedule(task, 0L, 1000L); } public void paint(Graphics g){ //背景の描画 g.setColor(Color.white); g.fillRect(0, 0, f_width, f_height); //時計の描画 g.setColor(Color.green); g.drawOval(x_0, y_0, r*2+1, r*2+1); g.fillRect(x_c-4, y_c-4, 9, 9); for(int i=-84, j=1; i =270; i+=6){ g.setColor(Color.green); double x=r*Math.cos(Math.toRadians(i)); double y=r*Math.sin(Math.toRadians(i)); if(i%30==0){ double x2=(r-15)*Math.cos(Math.toRadians(i)); double y2=(r-15)*Math.sin(Math.toRadians(i)); g.drawLine(x_c+(int)x, y_c+(int)y, x_c+(int)x2, y_c+(int)y2); double x3=(r-25)*Math.cos(Math.toRadians(i)); double y3=(r-25)*Math.sin(Math.toRadians(i)); g.setColor(Color.magenta); g.drawString( +j, x_c+(int)x3-5, y_c+(int)y3+5); j++; }else{ double x2=(r-7)*Math.cos(Math.toRadians(i)); double y2=(r-7)*Math.sin(Math.toRadians(i)); g.drawLine(x_c+(int)x, y_c+(int)y, x_c+(int)x2, y_c+(int)y2); } } //g.drawImage(pi,-100,-80,this); // Clock.gif g.drawImage(pi,x_c-350,y_c-460+5,this); // 4600.jpeg //針の描画 Calendar time = Calendar.getInstance(); int s = time.get(time.SECOND)*6-90; //秒針の角度 int sl = r-15; //秒針の長さ double slx = sl*Math.cos(Math.toRadians(s)); double sly = sl*Math.sin(Math.toRadians(s)); g.setColor(Color.pink); g.drawLine(x_c, y_c, x_c+(int)slx, y_c+(int)sly); int m = (time.get(time.MINUTE)*6+time.get(time.SECOND)/10)-90; //分針の角度、「/10」の部分は「/60*6」から int ml = r-30; //分針の長さ double mlx = ml*Math.cos(Math.toRadians(m)); double mly = ml*Math.sin(Math.toRadians(m)); g.setColor(Color.red); g.drawLine(x_c, y_c, x_c+(int)mlx, y_c+(int)mly); int h = (time.get(time.HOUR_OF_DAY)*30+time.get(time.MINUTE)/2)-90; //時針の角度、「/2」の部分は「/12*6」から int hl = r*4/7; //時針の長さ double hlx = hl*Math.cos(Math.toRadians(h)); double hly = hl*Math.sin(Math.toRadians(h)); g.setColor(Color.blue); g.drawLine(x_c, y_c, x_c+(int)hlx, y_c+(int)hly); } public static void main(String args[]){ new AClock2(); } }
https://w.atwiki.jp/testlink/pages/78.html
このページは以下に移動しました。以後こちらを編集願います。 http //testlinkjp.org/modules/pukiwiki/?JAVA%A5%BD%A1%BC%A5%B9%A4%AB%A4%E9%A5%C6%A5%B9%A5%C8%A5%B1%A1%BC%A5%B9%A4%F2%BA%EE%C0%AE%A4%B9%A4%EB%A5%C4%A1%BC%A5%EB Javaソースからテストケースを作成するツール ツールの概要 JavaソースにコメントからTestLinkのテストケース用XMLを作成するツールです。 Javaソースに以下の形式でコメントを記述すると /* * @tltestcase テストケース名 * @tlsummary テストの概要 * @tlsteps テスト手順 * @tlexpectedresults 期待される結果 * @tlkeyword キーワード * @tlnotes キーワードの説明 */ 下記のXMLファイルを生成します。 ?xml version="1.0" encoding="UTF-8"? testcases testcase name="テストケース名" summary ![CDATA[ p テストの概要 /p ]] /summary steps ![CDATA[ p テスト手順 /p ]] /steps expectedresults ![CDATA[ p 期待される結果 /p ]] /expectedresults keywords keyword name="キーワード" notes ![CDATA[ p キーワードの説明 /p ]] /notes /keyword /keywords /testcase /testcases このXMLファイルをテスト仕様- テストスイートのツリーを選択- テストケースをインポートからインポートすることによりテストケースがTestLinkに追加されます。 ツールの利用方法 EclipseのGUI eclipseでプロジェクト- Javadocの生成で以下を定義して実行。 Javadocが生成される方の選択 テストケースを生成したいソース カスタム docletを使用にチェック。 Doclet名 JavaToXml Docletクラス・パス JavaToXmlを格納したディレクトリ この手順で実行するとEclipseのインストールディレクトリィにtestcase.xmlというファイルができます。 コマンドライン WindowsのコマンドプロンプトやUNIXのシェルから javadoc -doclet JavaToXml -docletpath JavaToXmlを格納したディレクトリ ソース名/パッケージ名 でもできます。 Eclipseで簡単入力 1. eclipseでJavadoc用コメントの定義。 ウィンドウ- 設定- Java- エディッター- テンプレートに以下を定義 名前 TestLink(任意の名前でOK) 説明 TestLinkで管理するテストケース(これも任意) パターン (↓を入力) /* * @tltestcase * @tlsummary * @tlsteps * @tlexpectedresults * @tlkeyword * @tlnotes */ 2. コメントの追加 テスト用メソッド宣言の一行うえくらいで、Te(1で定義した名前の先頭2文字)と入力後、Ctrl+spaceキーを入力すると補完機能が動作するので、TestLink(1で定義した名前)を選択する。その後、各タグに必要な内容を追加します。 制限事項 全てのタグがないと異常終了します。エラー処理まじめに作ってません^^;; keywordとnotesは一つしか記述できないと思います。ここの部分はもう少し、調べてみないと複数記述できるようになるか不明です。 アーカイブ JavaToXml(SouceFouge)
https://w.atwiki.jp/ddr_dp/pages/3262.html
No Life Queen [DJ Command Remix](激) 曲名 アーティスト フォルダ 難易度 BPM NOTES/FA(SA) その他 No Life Queen [DJ Command Remix] SOUND HOLIC Vs. Eurobeat Union feat. Nana Takahashi A20+ 激14 165 599 / 15 足14NOTES数4位 STREAM VOLTAGE AIR FREEZE CHAOS 106 82 16 12 101 楽譜面(7) / 踊譜面(11) / 激譜面(14) / 鬼譜面(-) 属性 譜面 https //livedoor.blogimg.jp/yanmar195/imgs/5/8/58f5d59c.png 譜面動画 https //www.youtube.com/watch?v=wz6YdywkRUU (x2.5, NOTE) プレイ動画 https //www.youtube.com/watch?v=6eNjYGCrmBc (x?.?, NOTE) https //www.youtube.com/watch?v=r-0hm-TWBBM (x3.0, NOTE) 解説 名前 コメント コメント(私的なことや感想はこちら) 足14ではあまりないSTR100超えの譜面。16分3連と2連が混ざった8分滝をひたすら踏んでいく。中速で振り回しもそこまで強くないが、休憩が少なくノーツ600弱というかなりの体力譜面。 -- 名無しさん (2020-07-03 09 45 23) 譜面自体は比較的素直で足14だけど体力的には足15並みかも…? -- 名無しさん (2020-07-07 12 11 38) 尻上がりに難易度が上がっていき、16分の密度が高くなるため体力消費は14でトップクラス。同傾向の脳漿炸裂ガールCDPと比べると16分は地団駄配置ばかりなのでそちらよりはクリアしやすいかも -- 名無しさん (2020-07-07 20 23 56) フルコン狙いだと序盤の16分4+4連が一番難しかった。 -- 名無しさん (2020-07-10 21 29 45) 絶対体力譜面だ…って思いながら選曲したらやっぱり体力譜面だった -- 名無しさん (2020-07-11 00 21 53) STRは足14では高いがカニ歩き中心の楽な配置なのでそこまで体力消費は感じなかった。ただ、終盤の密度はかなりのものなので注意。一度だけ片側16分5連乱打もある。 -- 名無しさん (2020-09-10 19 56 23) 物量こそ15クラスだけど必要な技術自体は14の基礎レベル。省エネ踏みができていればノート数ほどのしんどさを感じないハズ。序盤の16分4連×2が苦手なら間に空踏みを入れて16分9連として踏むという手も。 -- 名無しさん (2020-12-12 19 25 02) 捻りや振り回しも少なく難易度の勾配も緩やか。挑戦レベルだと真綿で首を絞めるような感覚に襲われるが、物量耐性が付いてくるにつれてスコアがどんどん伸びていく。 -- 名無しさん (2023-06-27 00 05 15) 名前 コメント
https://w.atwiki.jp/yoshida2/pages/134.html
// LineArt.java import java.awt.*; import javax.swing.*; class LineArt { public static void main(String[] args) { JFrame frame = new JFrame(); frame.setTitle( Line Art ); frame.setSize(640, 480); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); MyPanel panel = new MyPanel(); frame.getContentPane().add(panel); frame.setVisible(true); } } class MyPanel extends JPanel implements Runnable { private Ball ball1; private Ball ball2; public MyPanel() { setBackground(Color.white); ball1 = new Ball(100,100,10,5,0,0,630,450); ball2 = new Ball(200,100,5,10,0,0,630,450); Thread refresh = new Thread(this); refresh.start(); } public void paintComponent(Graphics g) { super.paintComponent(g); ball1.forward(); ball2.forward(); g.setColor(Color.red); g.drawLine(ball1.getX(), ball1.getY(), ball2.getX(), ball2.getY()); //g.fillOval(ball1.getX(), ball1.getY(), 10, 10 ); //g.setColor(Color.blue); //g.fillOval(ball2.getX(), ball2.getY(), 10, 10 ); } public void run() { while(true) { repaint(); try { Thread.sleep(20); //Thread.sleep(50); } catch(Exception e) { } } } } class Ball { private int x; private int y; private int vx; private int vy; private int left; private int right; private int top; private int bottom; public Ball(int x, int y, int vx, int vy, int l, int t, int r, int b) { this.x = x; this.y = y; this.vx = vx; this.vy = vy; right = r; left = l; top = t; bottom = b; } public void forward() { x = x + vx; y = y + vy; if (x left || x right) { vx = -vx; } if (y top || y bottom) { vy = -vy; } } public int getX() { return x; } public void setX(int x) { this.x = x; } public int getY() { return y; } public void setY(int y) { this.y = y; } }
https://w.atwiki.jp/6662/pages/50.html
COMMANDO 2
https://w.atwiki.jp/shoot2ch/pages/12.html
開発環境の作成 とりあえず一般的なwindowsで開発環境を導入するまでを説明します。 下記にて入手できるツールは全てフリーです。 JDKの入手 http //java.sun.com/j2se/1.5.0/ja/download.html にアクセス。 『JDK 5.0 update(番号)』を選択してダウンロード、インストール。NetBeansはあとでインストールするので今はインストールしません。 NetBeansの入手 http //www.netbeans.org/downloads/?pagelang=ja にアクセス。 携帯java専用で作成するのであれば『java』を選択すればよいのですが、便利なのでとりあえず『すべて』を選択してダウンロード、インストールします。 完了 上記の手順が完了すれば、見事に開発環境が整ったといえましょう。 環境設定? んなもん必要ありません。さあ、れっつプログラミング!
https://w.atwiki.jp/miura_takashi/pages/18.html
JabRef のPPC専用の奴が出ていた。ありがたい。ランチャに登録するのにいちいちAppleScript を書いたりしなくてすむ。しかし、なんでかjabrefがmedline検索を出来ない。自宅では出来たのに。ここはKUINS-III内だから,一番怪しいのはproxy設定のはず。しかし、アプリケーション自体にはpreferencesがないし、ヘルプにある Using a Proxy Server If you need to use an http proxy server, pass the server name and port number to java at runtime. These environment settings are documented at http //java.sun.com/j2se/1.4.2/docs/guide/net/properties.html java -Dhttp.proxyHost="hostname" -Dhttp.proxyPort="portnumber" というのを見たり試したりしてみたが,まず,ターミナルでそのまま上記のまじないを売っても動かないので、真面目にオプションの説明を読む。 java -D でjavaの環境設定らしいので,どうやらスペースを入れないといかんらしい。しかし,スペースを入れてもなお Exception in thread "main" java.lang.NoClassDefFoundError http/proxyHost=hostname と出て,何かが変わっている風でもない。ちなみに NoClassDefFoundError とは、java のクラスが見つからなかった,というエラーなので,システムの環境設定のためのクラスが見えていないように見える。一応medline 検索がかからないことは確認した。 さらに、MacOSXのJAVAでプロキシ設定を読ませるにはどうするか探していたら,アップルのサポートページでこんなのを見つけた。 Q How do I set the https proxy for applets running in the Java Plug-in? A As of Java 1.4.2 on Mac OS X Panther, Java applications and applets now use HTTPS proxy settings from System Preferences. Earlier versions of Java did not use this information, but it is still possible to specify it if necessary by following the instructions below. You can override the Java Plugin default startup parameters for Java Applets by specifying custom options in the Java Runtime Parameters field. Setting the Java Runtime Parameters "https.proxyHost" and "https.proxyPort" to the secure proxy s host name and port in the appropriate Java Plugin Settings application will set the secure proxy for applets. The syntax is the same as used with parameters to the java command line invocation. See the Java 2 Standard Edition (J2SE) documentation for a full list of command line options. The Java Plugin Settings applications are located in the folder /Applications/Utilities/Java on a Mac OS X system. The Advanced tab of the "Java 1.4.1 Plugin Settings" application has the Java Runtime Parameters text field for applets running in Java 1.4.1. The Basic tab of the "Java 1.3.1 Plugin Settings" application has the Java Runtime Parameters text field for applets running in Java 1.3.1. The listing below demonstrates the Java Runtime Parameters for a secure proxy server host named "secureproxy.company.com" using port 443. ...額面通り取ると,Java 1.4.2以降だとhttpsの情報をシステム環境設定から読む,となってるから,システムの他のアプリが動いていたら普通に動くはずだが,動かない。これはいったいどこの設定だ?しかし、/Application/Utilities/Javaの下に色々とアプリがあることがわかったので,こいつをいじってみる。例えば,Java 1.4.2 Plugin Settings の中の「Java実行時のパラメータ」欄に D https.proxyHost=proxy.kuins.net -D https.proxyPort=8080 と入れてみるが,結局変わらない。 SourceForgeからソースコードを取って来たりしてみるが,これもいじるのに時間がかかりそうだから却下。 java1.4.2のアップデータをダウンロードしてみるが,既に入っている,と表示されるだけで何も起こらない。しばらくはEndNoteから取り込むか... 結局,socks-proxy の設定を外したら,KUINSの中からでもきちんと読み込めることが判明。そうか。
https://w.atwiki.jp/study_java/pages/16.html
予約語について。 JAVAで変数や関数を自分の分かりやすい名前(識別子)でつけますが これだけは使っちゃダメって言う JAVAが禁止している名前があります、それは識別子として使えないので注意してください。 識別子については別のページで説明させていただきます。 予約語 読み仮名 意味 abstract アブストラクト クラスやメソッドが実装されていないことを宣言する。 boolean ブーリアン 真偽を表す型。 break ブレイク 処理内のループ({})を抜け出す。 byte バイト 1バイト符号付整数を表すための型。 case ケイス switchブロック内でラベルのようにして使用する。 catch キャッチ tryブロック内で例外が発生した場合の処理先を示す。 char キャラクタ unicode文字を表すための型、2バイト文字型。 class クラス クラス宣言 const コンスト 予約されてるのに使えない・・・ continue コンティニュー ループ内で次の繰り返しに入る。 default デフォルト switchの中でcaseと一致しなかった場合に実行。 do ドゥ 繰り返し条件が後置のループの開始点を示す。 double ダブル 倍精度浮動小数点を表すための型。ちなみに8バイト else エルス if文が成立しなかった場合に実行されることを示す。 extends エクステンズ クラスの拡張元(親クラス)を示す。 final ファイナル 変更できないことを示す。 finally ファイナリー tryブロックに入ったら必ず抜け出すときに実行されることを示す。 float フロート 単精度浮動小数点を表すための型。 for フォー 繰り返し。 goto ゴートー 予約されてるのに使えない・・・ if イフ 真偽による条件分岐。 implements インプリメンツ インターフェースの宣言元を示す。 import インポート コンパイラに名前解決のためのヒントを与える。 instanceof インスタンスオブ インスタンスが該当クラスのインスタンスとなっているか調べる。 int イント 4バイト符号付整数を表すための型。 interface インターフェース インターフェースの定義。 long ロング 8バイト符号付整数を表わすための型。 native ネイティブ 他の言語で書かれたメソッドを表す。 new ニュー コンストラクタの呼び出し。オブジェクトを生成するときに使用する。 package パッケージ パッケージの宣言。 private プライベート 自分のクラスのみからアクセスできる。 protected プロテクテッド 自分のパッケージと拡張クラスからのみアクセスできる。 public パブリック すべてのクラスからアクセスできる。 return リターン メソッドの終了。 short ショート 2バイト符号付整数を表すための型。 static スタティック クラスのメンバーであることを示す。 strictfp スクリプトエフピー 浮動小数点の取扱制御。 super スーパー スーパークラスのメンバーの呼出。 switch スイッチ 多方分岐。 synchronized シンクロナイズド マルチスレッド制御。 this ディス 自クラスのメンバーの呼出。 throw スロウ 例外を発生させる。 throws スロウズ 例外を投げることを宣言。 transient トランジェント シリアライズの対象外を示す。 try トライ 例外が発生する領域に入る。 void ボイド 戻り値が無いことを示す。 volatile ボラタイル コンパイラの最適化の制御。 while ホワイル ループの繰り返し条件。